package com.lg.atp.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.lg.atp.entity.TblPara;

public interface ParaDao {

	public List<TblPara> selectParaHasData(@Param("paraType")Integer paraType);
	
	public List<TblPara> getSelData(Map<String,Object> map);
	
	public List<TblPara> selectParaHasNoData(@Param("paraType")Integer paraType);
	
	public List<TblPara> getCrData(Map<String,Object> map);
	
	public List<TblPara> selectParaWithNoSet();
	
	public TblPara selectParaByName(TblPara para);
	
	public List<TblPara> selectParaByDatasetId(TblPara para);
	
	public List<TblPara> selectParaWithOnlyDatasetId(@Param("datasetId")Long datasetId);
	
	public void savePara(TblPara para);
	
	public List<TblPara> selectParaName();
	
	public void setParaDatasetNull(@Param("datasetId")Long datasetId);

	public void updateParaDatasetDisable(@Param("datasetId")Long datasetId);
	
	public Long hasParaInDataset(Map<String,Object> map);
	
	public TblPara selectParaByParaId(@Param("paraId")Long paraId);
}
